<?php
/* @var $this ArticleController */
/* @var $model Article */

$this->breadcrumbs=array(
	'Articles'=>array('index'),
	$model->title=>array('view','id'=>$model->id),
	'Update',
);

    if (!empty($categorytype)) {
        $this->menu = array(
            array('label' => '产品分类', 'url' => array('column/padmin')),
            array('label' => '创建分类', 'url' => array('column/pcreate')),
            array('label' => '产品列表', 'url' => array('article/padmin')),
            array('label' => '创建产品', 'url' => array('article/pcreate')),
        );
        ?>
        <h1>更新产品</h1>
    <?php
    } else {
        $this->menu = array(
            array('label' => '文章分类', 'url' => array('column/admin')),
            array('label' => '创建分类', 'url' => array('column/create')),
            array('label' => '文章列表', 'url' => array('article/admin')),
            array('label' => '创建文章', 'url' => array('article/create')),
        );
        ?>
        <h1>更新文章</h1>
    <?php
    }
?>


<?php $this->renderPartial('_form', array('model'=>$model)); ?>